<script setup lang="ts">
import { ref } from 'vue'

const options = [
  {
    label: '男',
    value: 1
  },
  {
    label: '女',
    value: 0
  }
]

const gender = ref<number>(0)
</script>

<template>
  <div>
    <cp-radio-btn
      :options="options"
      :modelValue="gender"
      @update:modelValue="gender = $event as number"
    ></cp-radio-btn>
  </div>
</template>

<style scoped></style>
